package system.bean;

import java.util.Collection;
import java.util.Vector;

import util.ORProperty;
import util.ObjectRelationMappable;
import util.ObjectRelationMappingUtil;

public class Member implements ObjectRelationMappable{
	private int memberId;
	private String login_name;
	private String real_name;
	private String email;
	private String password;
	private String empNo;
	
	public final static String tableName = "member";
	private final static Vector<Member> orProperties = new Vector<Member>();
	
	private static void initORProperties(Member document)
    {
        if (orProperties.size() > 0)return;
        ObjectRelationMappingUtil.addORProperty("memberId", false,	 ORProperty.FIELD_TYPE_INT, "memberId", true, orProperties);
        ObjectRelationMappingUtil.addORProperty(document, "login_name"     , "login_name"     , orProperties);
        ObjectRelationMappingUtil.addORProperty(document, "real_name"      , "real_name"      , orProperties);
        ObjectRelationMappingUtil.addORProperty(document, "email"          , "email"          , orProperties);
        ObjectRelationMappingUtil.addORProperty(document, "password"       , "password"       , orProperties);
        ObjectRelationMappingUtil.addORProperty(document, "empNo"          , "empNo"          , orProperties);
    }
	
	public Member(){
		initORProperties(this);
	}
	
	public int getMemberId() {
		return memberId;
	}
	public void setMemberId(int memberId) {
		this.memberId = memberId;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmpNo() {
		return empNo;
	}
	public void setEmpNo(String empNo) {
		this.empNo = empNo;
	}

	public Collection<Member> getORProperties() {
		return orProperties;
	}

	public String getTableName() {
		return tableName;
	}

	public String getLogin_name() {
		return login_name;
	}

	public void setLogin_name(String login_name) {
		this.login_name = login_name;
	}

	public String getReal_name() {
		return real_name;
	}

	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
}
